import 'package:flutter/cupertino.dart';
import 'package:get/get.dart';
import 'package:get/get_core/src/get_main.dart';
import 'package:hygf/bean/CustomerList.dart';
import 'package:hygf/view/image_picker_widget.dart';

import '../../../../bean/add_check_bean.dart';
import '../../../../bean/customer_bean.dart';

class CheckAcceptState {
  bool isReadOnly = true;
  AddAcceptBean addAcceptBean = AddAcceptBean();
  Acceptance acceptance = Acceptance();
  TextEditingController rnRemarkController = TextEditingController();
  var reportFileController = ImagePickerWidgetController();
  var otherController = ImagePickerWidgetController();

  CheckAcceptState() {
    var map = Get.arguments;
    if (map["pageData"] != null) {
      CustomerListItem itemData = map["pageData"];
      acceptance.customerInfoId = itemData.id;
      if (itemData.status == 11 && map["title"] != "客户详情") {
        isReadOnly = false;
      }
    }
  }
}
